package com.tzbank.wisdom.entity;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.annotations.Table;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;

import java.io.Serializable;

@Data
@EqualsAndHashCode(callSuper = false)
@Entity(name = "mb_bank_network")
@Table(appliesTo = "mb_bank_network", comment = "银行网点表")
public class BankNetwork implements Serializable {

	private static final long serialVersionUID = 268970655964548268L;

	@ApiModelProperty(value = "自增主键")
	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	@Column(unique = true, name = "auto_id", columnDefinition = "int(11) NOT NULL COMMENT '自增Id'")
	private Integer autoId;
	
	@ApiModelProperty(value = "银行网点编号")
	@Column(name = "bankcode", columnDefinition = "varchar(20)  NOT NULL COMMENT '银行网点编号'")
	private String bankcode;

	@ApiModelProperty(value = "状态")
	@Column(name = "status", columnDefinition = "varchar(2)  NOT NULL COMMENT '状态'")
	private String status;

	@ApiModelProperty(value = "类型")
	@Column(name = "category", columnDefinition = "varchar(50)  DEFAULT NULL COMMENT '类型'")
	private String category;

	@ApiModelProperty(value = "银行编号")
	@Column(name = "clscode", columnDefinition = "varchar(20) DEFAULT NULL COMMENT '银行编号'")
	private String clscode;

	@ApiModelProperty(value = "清算行号")
	@Column(name = "dreccode", columnDefinition = "varchar(20) DEFAULT NULL COMMENT ''")
	private String dreccode;
	
	@ApiModelProperty(value = "节点编号")
	@Column(name = "nodecode", columnDefinition = "varchar(20) DEFAULT NULL COMMENT '节点编号'")
	private String nodecode;
	
	@ApiModelProperty(value = "")
	@Column(name = "suprlist", columnDefinition = "varchar(20) DEFAULT NULL COMMENT ''")
	private String suprlist;
	
	@ApiModelProperty(value = "")
	@Column(name = "pbccode", columnDefinition = "varchar(20) DEFAULT NULL COMMENT ''")
	private String pbccode;
	
	@ApiModelProperty(value = "城市编号")
	@Column(name = "citycode", columnDefinition = "varchar(20) DEFAULT NULL COMMENT '城市编号'")
	private String citycode;
	
	@ApiModelProperty(value = "")
	@Column(name = "acctstatus", columnDefinition = "varchar(20) DEFAULT NULL COMMENT ''")
	private String acctstatus;
	
	@ApiModelProperty(value = "")
	@Column(name = "asaltdt", columnDefinition = "varchar(20) DEFAULT NULL COMMENT ''")
	private String asaltdt;
	
	@ApiModelProperty(value = "")
	@Column(name = "asalttm", columnDefinition = "varchar(20) DEFAULT NULL COMMENT ''")
	private String asalttm;
	
	@ApiModelProperty(value = "网点名称")
	@Column(name = "lname", columnDefinition = "varchar(20) DEFAULT NULL COMMENT '网点名称'")
	private String lname;
	
}
